home *** CD-ROM | disk | FTP | other *** search
/ Megaware 1 / Megaware Volume 1.iso / programg / c-tutor / answers / ch07_2a.hpp < prev    next >
Text File  |  1990-07-20  |  373b  |  22 lines

  1.                               // Chapter 7 - Programming exercise 2
  2. #ifndef CARHPP
  3. #define CARHPP
  4.  
  5. #include "vehicle.hpp"
  6.  
  7. class car : public vehicle {
  8.    int passenger_load;
  9. public:
  10.    void initialize(int in_wheels, float in_weight, int people = 4);
  11.    int passengers(void);
  12. };
  13.  
  14. #endif
  15.  
  16.  
  17.  
  18.  
  19. // Result of execution
  20. //
  21. // (this file cannot be executed)
  22.